package 笔试题;

import java.util.Scanner;

/**
 * @author 帅小伙
 * @date 2022/1/2
 * @description
 */
public class Demo2022贝壳找房2 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int m = scanner.nextInt();

        for (int i = 0; i < m; i++) {
            int n = scanner.nextInt();
            int count =1+(n-1)/2;
            System.out.println(count);

        }
    }

}
